package com.ssmTest.dao;

import com.ssmTest.model.UserInformation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserInformationDao {
    UserInformation selectUserInformation(int id);
    void insertUserInformation(UserInformation userInformation);
    List<UserInformation> informationList(int toexamine);
    void updateInformation(UserInformation userInformation);


    int numberOfInformation(int toexamine);

    //关键字查询
    List<UserInformation> selectUserInformationByAndName(@Param("start")int start, @Param("end")int end, @Param("city")String city, @Param("name")String name);

    List<UserInformation> selectUserInformationByNoName(@Param("start")int start,@Param("end")int end,@Param("city")String city);

    List<UserInformation> selectByPersionalId(int personal_id);
}
